#!/usr/bin/python

# This program will force you to memorize the 20 basic Amino Acids, mk

import random


aa = {'R':['Arginine',"+Ve"],'H':['Histidine','+Ve'],'K':['Lysine','+Ve'], 'D':['Aspartic',"-Ve"], 'E':['Glutamic','-Ve'], 'S':['Serine','Polar Uncharged'],\
'T':['Threonine','Polar Uncharged'],'N':['Asparagine','Polar Uncharged'],'Q':['Glutamine','Polar Uncharged'],'C':['Cysteine','Polar Uncharged'],\
'U':['Selenocysteine','Polar Uncharged'],'G':['Glycine','Polar Uncharged'],'P':['Proline','Polar Uncharged'],'A':['Aline','Hydrophobic'],'V':['Valine','Hydrophobic'],\
'I':['Isoleucine','Hydrophobic'],'L':['Leucine','Hydrophobic'],'M':['Methionine','Hydrophobic'],'F':['Phenylalanine','Hydrophobic'], 'Y':['Tyrosine','Hydrophobic'],\
'W':['Tryptophan','Hydrophobic']}

print "#### Amino Acyl Training ####"

while True:
	select =  random.choice(aa.keys())
	print "Abreviation = [%s]" %(select)
	print "Charge: "+aa[select][1]
	print "AA name: %s" %(''.join(random.sample(aa[select][0],len(aa[select][0]))))
	
	answer = raw_input("Enter Residue Name: ")
	if answer.lower() ==  aa[select][0].lower():
		print "CORRECT!"
	else:
		print "WRONG :: %s" %(aa[select][0])
	print "===========================================\n"